<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<c:set var="contextPath" value="<%=request.getContextPath()%>"></c:set>
<div class="class_en">
<bsl:when-authorized permissions="admin">
<div style="height:38px;border:0px;padding:0;margin:0;background:#012b3b">
		<div style="float:left;font:bold 16px/38px Verdana,microsoft yahei,Arial;padding-left:15px;color:#fff;">
		ADMIN
		</div>
</div>	

<c:if test="${not empty curDivision.categories }">			

		<c:choose>
				<c:when test="${empty curCategory}">
					<c:set value="class_cur" var="cateClass"></c:set>
				</c:when>
				<c:otherwise>
					<c:set value="class_en" var="cateClass"></c:set>
				</c:otherwise>
			</c:choose>
		
		<a href="#" target="_self" class="class_en" onclick="shareMy('${user.userName}','${contextPath}/editArticle?division.id=${curDivision.id}', '${contextPath}/viewLogin')">UPDATE</a>
</c:if>
	
			 	
 		<a class="class_en" href="${contextPath}/viewArticleContent">查看修改</a>
 		<a class="class_en" href="${contextPath}/viewEnquiryList">查看咨询</a>
			 		
</bsl:when-authorized>
<c:if test="${not empty curDivision.categories }">			
<div style="height:38px;border:0px;padding:0;margin:0;background:#012b3b">
		<div style="float:left;font:bold 16px/38px Verdana,microsoft yahei,Arial;padding-left:15px;color:#fff;">
		CATEGORY
		</div>
</div>	
<c:forEach var="cate" varStatus="vs" items="${curDivision.categories}">
			
			<c:choose>
				<c:when test="${cate.id == curCategory.id}">
					<c:set value="class_cur" var="cateClass"></c:set>
				</c:when>
				<c:otherwise>
					<c:set value="class_en" var="cateClass"></c:set>
				</c:otherwise>
			</c:choose>
		
			<a href="${contextPath}/viewArticle?division.id=${curDivision.id}&category.id=${cate.id}" target="_self" class="${cateClass}">${cate.cateName}</a>
			
		</c:forEach>
		</c:if>
</div>